<?php


namespace app\api\controller;

use app\BaseController;


class admin extends BaseController
{

    /**
     *  获取管理员列表
     */
    public function adminList()
    {
        try {
            $data = (new \app\api\model\AdminModel)->select()->toArray();
        } catch (\Exception $e) {
            $this->error('获取失败', $e->getMessage());
        }
        $this->success('获取成功', $data);
    }


}